Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Printing /
Chapter 4 - Advanced Printing Features / Advanced Printing Features Reference
Functions / Manipulating Printer Objects


GXGetPrinterViewDevice

You can use the GXGetPrinterViewDevice function to obtain a printer object's view device, using an index value.

gxViewDevice GXGetPrinterViewDevice (gxPrinter aPrinter,
                                 long whichViewDevice);
aPrinter
A reference to the printer object whose view device you wish to obtain.
whichViewDevice
An index value that specifies the position of the view device reference in the printer object's view device list.
function result
A reference to the specified view device.
DESCRIPTION
You specify an index value, starting with 1, in the whichViewDevice parameter. The parameter specifies a particular view device. You can specify 0 in the whichViewDevice parameter to obtain the view device that represents the current view device, which allows you to obtain the current resolution and color space for the printer.

RESULT CODES
gxSegmentLoadFailedErrA required code segment could not be found, or there was not enough memory to load it.
SEE ALSO
For examples that use the GXGetPrinterViewDevice function, see "Determining a Printer's Resolution" on page 4-26 and "Retrieving the Color Profile and Color Space for a Printer" on page 4-27.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help